package dy.com;

import dy.com.part2ClassLoader.chapter9.MyClassLoader;
import dy.com.part2ClassLoader.chapter9.Singleton;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) throws ClassNotFoundException {
        ClassLoader classLoader = App.class.getClassLoader() ;
        ClassLoader classLoader2 = App.class.getClassLoader() ;

        Class s1 = classLoader.loadClass("dy.com.part1.chapter1.TicketWindowRunnable");
        Class s2 = classLoader2.loadClass("dy.com.part1.chapter1.TicketWindowRunnable");

        System.out.println(s1.getClassLoader()+" "+s1.hashCode());
        System.out.println(s2.getClassLoader()+" "+s2.hashCode()+"  ");
        System.out.println(s1==s2);

    }
}
